Created
June 23, 2015 01:17
-
-
Save mikeyp/c351133ee21bc11faaf8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
$map = \Drupal::entityManager()->getFieldMap(); | |
dsm($map); |
This file contains hidden or 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 | |
$defs = \Drupal::entityManager()->getFieldDefinitions('node', 'sponsor'); | |
foreach ($defs as $def) { | |
\Drupal::entityManager()->onFieldDefinitionCreate($def); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Building a Drupal 8 view and have missing fields? Check if they are in the field map, and have correct bundle data, and if not, run the snippet below for each entity/bundle type that needs updating.