public function DomainEntityMapper::loadField in Domain Access Entity 8
Loads field from entity bundle.
Parameters
string $entity_type_id: The entity type ID.
string $bundle: The entity type bundle name.
Return value
\Drupal\field\Entity\FieldConfig|null The field or NULL.
File
- src/
DomainEntityMapper.php, line 110
Class
- DomainEntityMapper
- Provides fields operations for domain entity module fields.
Namespace
Drupal\domain_entityCode
public function loadField($entity_type_id, $bundle) {
$storage = $this->entityTypeManager
->getStorage('field_config');
return $storage
->load($entity_type_id . '.' . $bundle . '.' . self::FIELD_NAME);
}