Update to Drupal 8.0.6. For more information, see https://www.drupal.org/drupal-8.0.6-release-notes
This commit is contained in:
parent
4297c64508
commit
b11a755ba8
159 changed files with 2340 additions and 543 deletions
|
@ -18,6 +18,8 @@ use Drupal\Core\StringTranslation\StringTranslationTrait;
|
|||
* Implement the container injection pattern of
|
||||
* \Drupal\Core\Entity\EntityHandlerInterface::createInstance() to obtain the
|
||||
* module handler service for your class.
|
||||
*
|
||||
* @ingroup entity_api
|
||||
*/
|
||||
abstract class EntityHandlerBase {
|
||||
use StringTranslationTrait;
|
||||
|
|
|
@ -14,6 +14,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
|||
*
|
||||
* This interface can be implemented by entity handlers that require
|
||||
* dependency injection.
|
||||
*
|
||||
* @ingroup entity_api
|
||||
*/
|
||||
interface EntityHandlerInterface {
|
||||
|
||||
|
|
|
@ -277,8 +277,8 @@ use Drupal\node\Entity\NodeType;
|
|||
* content entity type that uses bundles, the 'bundle_label' annotation gives
|
||||
* the human-readable name to use for a bundle of this entity type (for
|
||||
* example, "Content type" for the Node entity).
|
||||
* - The annotation will refer to several controller classes, which you will
|
||||
* also need to define:
|
||||
* - The annotation will refer to several handler classes, which you will also
|
||||
* need to define:
|
||||
* - list_builder: Define a class that extends
|
||||
* \Drupal\Core\Config\Entity\ConfigEntityListBuilder (for configuration
|
||||
* entities) or \Drupal\Core\Entity\EntityListBuilder (for content
|
||||
|
@ -298,7 +298,7 @@ use Drupal\node\Entity\NodeType;
|
|||
* annotation has value TRUE), define a class that extends
|
||||
* \Drupal\content_translation\ContentTranslationHandler, to translate
|
||||
* the content. Configuration translation is handled automatically by the
|
||||
* Configuration Translation module, without the need of a controller class.
|
||||
* Configuration Translation module, without the need of a handler class.
|
||||
* - access: If your configuration entity has complex permissions, you might
|
||||
* need an access control handling, implementing
|
||||
* \Drupal\Core\Entity\EntityAccessControlHandlerInterface, but most entities
|
||||
|
@ -381,10 +381,10 @@ use Drupal\node\Entity\NodeType;
|
|||
* an object to the controller for the route.
|
||||
* - defaults: For entity form routes, use _entity_form rather than the generic
|
||||
* _controller or _form. The value is composed of the entity type machine name
|
||||
* and a form controller type from the entity annotation (see @ref define
|
||||
* above more more on controllers and annotation). So, in this example,
|
||||
* block.default refers to the 'default' form controller on the block entity
|
||||
* type, whose annotation contains:
|
||||
* and a form handler type from the entity annotation (see @ref define above
|
||||
* more more on handlers and annotation). So, in this example, block.default
|
||||
* refers to the 'default' form handler on the block entity type, whose
|
||||
* annotation contains:
|
||||
* @code
|
||||
* handlers = {
|
||||
* "form" = {
|
||||
|
|
Reference in a new issue