public function Entity::__construct in Convert Media Tags to Markup 8
Same name and namespace in other branches
- 2.x src/ConvertMediaTagsToMarkup/Entity.php \Drupal\convert_media_tags_to_markup\ConvertMediaTagsToMarkup\Entity::__construct()
Constructor.
Parameters
Drupal\Core\Entity\EntityInterface $entity: The Drupal entity for which this object is a wrapper.
File
- src/
ConvertMediaTagsToMarkup/ Entity.php, line 21
Class
- Entity
- Represents a Drupal entity for our purposes.
Namespace
Drupal\convert_media_tags_to_markup\ConvertMediaTagsToMarkupCode
public function __construct(DrupalEntity $entity) {
$this->entity = $entity;
}