Drupal 8  8.0.2
ContentTranslationPermissions Class Reference
Inheritance diagram for ContentTranslationPermissions:

Public Member Functions

 __construct (EntityManagerInterface $entity_manager, ContentTranslationManagerInterface $content_translation_manager)
 
 contentPermissions ()
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Attributes

 $entityManager
 
 $contentTranslationManager
 

Detailed Description

Provides dynamic permissions for the content_translation module.

Constructor & Destructor Documentation

__construct ( EntityManagerInterface  $entity_manager,
ContentTranslationManagerInterface  $content_translation_manager 
)

Constructs a ContentTranslationPermissions instance.

Parameters
\Drupal\Core\Entity\EntityManagerInterface$entity_managerThe entity manager.
\Drupal\content_translation\ContentTranslationManagerInterface$content_translation_managerThe content translation manager.

References Drupal\entityManager().

Here is the call graph for this function:

Member Function Documentation

contentPermissions ( )

Returns an array of content translation permissions.

Returns
array

References Drupal\entityManager(), and t().

Here is the call graph for this function:

static create ( ContainerInterface  $container)
static

{Instantiates a new instance of this class.This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton.

Parameters
\Symfony\Component\DependencyInjection\ContainerInterface$containerThe service container this instance should use.
}

Implements ContainerInjectionInterface.


The documentation for this class was generated from the following file: