public static function BaseFieldOverride::loadByName in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php \Drupal\Core\Field\Entity\BaseFieldOverride::loadByName()
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.
3 calls to BaseFieldOverride::loadByName()
- BaseFieldDefinition::getConfig in core/
lib/ Drupal/ Core/ Field/ BaseFieldDefinition.php - Gets an object that can be saved in configuration.
- ContentTranslationSettingsTest::testSettingsUI in core/
modules/ content_translation/ src/ Tests/ ContentTranslationSettingsTest.php - Tests that the settings UI works as expected.
- NodeFieldOverridesTest::testFieldOverrides in core/
modules/ node/ src/ Tests/ NodeFieldOverridesTest.php - Tests that field overrides work as expected.
File
- core/
lib/ Drupal/ Core/ Field/ Entity/ BaseFieldOverride.php, line 232 - Contains \Drupal\Core\Field\Entity\BaseFieldOverride.
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);
}