Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$map = \Drupal::entityManager()->getFieldMap();
$defs = \Drupal::entityManager()->getFieldDefinitions('node', 'sponsor');
foreach ($defs as $def) {

This comment has been minimized.

Copy link
Owner Author

mikeyp commented Jun 23, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.