Created
April 21, 2016 20:22
-
-
Save shadcn/cde26afc528a7bc7ae8d68ce658a8f2d to your computer and use it in GitHub Desktop.
field_info_instance or how to get field info in Drupal 8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Drupal\field\Entity\FieldConfig; | |
$info = FieldConfig::loadByName($entity_type, $bundle, $field_name); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment