You are here

protected function StorageManager::getField in Paragraph View Mode 2.x

Same name and namespace in other branches
  1. 8 src/StorageManager.php \Drupal\paragraph_view_mode\StorageManager::getField()

Get field config.

Parameters

string $bundle: Paragraph entity bundle.

Return value

\Drupal\field\FieldConfigInterface|null Field config.

3 calls to StorageManager::getField()
StorageManager::addField in src/StorageManager.php
Add field to the given bundle.
StorageManager::deleteField in src/StorageManager.php
Delete field from the given bundle.
StorageManager::setFieldLabel in src/StorageManager.php
Sets field label.

File

src/StorageManager.php, line 194

Class

StorageManager
Provides fields and forms storage operations required by the module.

Namespace

Drupal\paragraph_view_mode

Code

protected function getField(string $bundle) : ?FieldConfigInterface {
  return FieldConfig::loadByName($type = StorageManagerInterface::ENTITY_TYPE, $bundle, $field_name = StorageManagerInterface::FIELD_NAME);
}