BaseFieldOverride::loadByName

public static BaseFieldOverride::loadByName($entity_type_id, $bundle, $field_name)

Loads a base field bundle override config entity.

Parameters

string $entity_type_id: ID of the entity type.

string $bundle: Bundle name.

string $field_name: Name of the field.

Return value

static The base field bundle override config entity if one exists for the provided field name, otherwise NULL.

File

core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php, line 227

Class

BaseFieldOverride
Defines the base field override entity.

Namespace

Drupal\Core\Field\Entity

Code

public static function loadByName($entity_type_id, $bundle, $field_name) {
  return \Drupal::entityManager()->getStorage('base_field_override')->load($entity_type_id . '.' . $bundle . '.' . $field_name);
}
doc_Drupal
2016-10-29 08:45:53
Comments
Leave a Comment

Please login to continue.