public function EntityCollectionLocalActionProvider::__construct in Entity API 8
Constructs a new EntityCollectionLocalActionProvider object.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation.
File
- src/
Menu/ EntityCollectionLocalActionProvider.php, line 26
Class
- EntityCollectionLocalActionProvider
- Provides a action link to the add page or add form on the collection.
Namespace
Drupal\entity\MenuCode
public function __construct(EntityTypeInterface $entity_type, TranslationInterface $string_translation) {
$this
->setStringTranslation($string_translation);
}