You are here

class EntityReferenceFieldInheritancePlugin in Field Inheritance 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/FieldInheritance/EntityReferenceFieldInheritancePlugin.php \Drupal\field_inheritance\Plugin\FieldInheritance\EntityReferenceFieldInheritancePlugin

Entity Reference Inheritance plugin.

Plugin annotation


@FieldInheritance(
  id = "entity_reference_inheritance",
  name = @Translation("Entity Reference Field Inheritance"),
  types = {
    "entity_reference",
    "image",
    "file",
    "webform",
    "entity_reference_revisions",
    "paragraphs"
  }
)

Hierarchy

Expanded class hierarchy of EntityReferenceFieldInheritancePlugin

File

src/Plugin/FieldInheritance/EntityReferenceFieldInheritancePlugin.php, line 23

Namespace

Drupal\field_inheritance\Plugin\FieldInheritance
View source
class EntityReferenceFieldInheritancePlugin extends FieldInheritancePluginBase implements FieldInheritancePluginInterface {

}

Members

Namesort descending Modifiers Type Description Overrides
FieldInheritancePluginBase::$destinationField protected property The entity field used to inherit.
FieldInheritancePluginBase::$entity protected property The entity.
FieldInheritancePluginBase::$entityTypeManager protected property The entity type manager.
FieldInheritancePluginBase::$fieldInheritanceId protected property The field inheritance id.
FieldInheritancePluginBase::$keyValue protected property The key value store.
FieldInheritancePluginBase::$langCode protected property The current language code.
FieldInheritancePluginBase::$languageManager protected property The language manager service.
FieldInheritancePluginBase::$method protected property The method used to inherit.
FieldInheritancePluginBase::$sourceEntityType protected property The source entity type used to inherit.
FieldInheritancePluginBase::$sourceField protected property The source field used to inherit.
FieldInheritancePluginBase::appendData protected function Retrieve appended data.
FieldInheritancePluginBase::computeValue public function Compute the value of the field. Overrides FieldInheritancePluginInterface::computeValue
FieldInheritancePluginBase::create public static function Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface::create
FieldInheritancePluginBase::fallbackData protected function Retrieve fallback data.
FieldInheritancePluginBase::getDestinationEntity protected function Get the translated destination entity.
FieldInheritancePluginBase::getDestinationEntityBundle public function Get the configuration destination entity bundle.
FieldInheritancePluginBase::getDestinationEntityType public function Get the configuration destination entity type.
FieldInheritancePluginBase::getDestinationField public function Get the configuration destination field.
FieldInheritancePluginBase::getMethod public function Get the configuration method.
FieldInheritancePluginBase::getSourceEntity protected function Get the translated source entity.
FieldInheritancePluginBase::getSourceEntityBundle public function Get the configuration source entity bundle.
FieldInheritancePluginBase::getSourceEntityType public function Get the configuration source entity type.
FieldInheritancePluginBase::getSourceField public function Get the configuration source field.
FieldInheritancePluginBase::inheritData protected function Retrieve inherited data.
FieldInheritancePluginBase::prependData protected function Retrieve prepended data.
FieldInheritancePluginBase::validateArguments protected function Validate the configuration arguments of the plugin.
FieldInheritancePluginBase::__construct public function Constructs a FieldInheritancePluginBase object. Overrides PluginBase::__construct
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 2
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.