public static function 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\EntityCode
public static function loadByName($entity_type_id, $bundle, $field_name) { return \Drupal::entityManager()->getStorage('base_field_override')->load($entity_type_id . '.' . $bundle . '.' . $field_name); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Field!Entity!BaseFieldOverride.php/function/BaseFieldOverride::loadByName/8.1.x