You are here

public function VideoEmbedField::__construct in Video Embed Field 8.2

Same name in this branch
  1. 8.2 src/Plugin/Field/FieldType/VideoEmbedField.php \Drupal\video_embed_field\Plugin\Field\FieldType\VideoEmbedField::__construct()
  2. 8.2 modules/video_embed_media/src/Plugin/media/Source/VideoEmbedField.php \Drupal\video_embed_media\Plugin\media\Source\VideoEmbedField::__construct()
Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldType/VideoEmbedField.php \Drupal\video_embed_field\Plugin\Field\FieldType\VideoEmbedField::__construct()

Constructs a TypedData object given its definition and context.

Parameters

\Drupal\Core\TypedData\DataDefinitionInterface $definition: The data definition.

string $name: (optional) The name of the created property, or NULL if it is the root of a typed data tree. Defaults to NULL.

\Drupal\Core\TypedData\TypedDataInterface $parent: (optional) The parent object of the data property, or NULL if it is the root of a typed data tree. Defaults to NULL.

Overrides FieldItemBase::__construct

See also

\Drupal\Core\TypedData\TypedDataManager::create()

File

src/Plugin/Field/FieldType/VideoEmbedField.php, line 36

Class

VideoEmbedField
Plugin implementation of the video_embed_field field type.

Namespace

Drupal\video_embed_field\Plugin\Field\FieldType

Code

public function __construct($definition, $name = NULL, TraversableTypedDataInterface $parent = NULL, $provider_manager = NULL) {
  parent::__construct($definition, $name, $parent);
  $this->providerManager = $provider_manager;
}