Commit 257abe12 authored by webchick's avatar webchick

Issue #2472669 by keopx, rpayanm, rteijeiro, jhodgdon: Complete documentation...

Issue #2472669 by keopx, rpayanm, rteijeiro, jhodgdon: Complete documentation for every implementation of hook_ENTITY_TYPE_*
parent 517b44dd
......@@ -98,7 +98,7 @@ function _ckeditor_theme_css($theme = NULL) {
}
/**
* Implements hook_ENTITY_TYPE_update().
* Implements hook_ENTITY_TYPE_insert() for 'filter_format'.
*
* Recalculates the 'format_tags' CKEditor setting when a text format is added.
*
......@@ -110,7 +110,7 @@ function ckeditor_filter_format_insert() {
}
/**
* Implements hook_ENTITY_TYPE_update().
* Implements hook_ENTITY_TYPE_update() for 'filter_format'.
*
* Recalculates the 'format_tags' CKEditor setting when a text format changes.
*
......
......@@ -8,7 +8,7 @@
use Drupal\Component\Utility\Random;
/**
* Implements hook_ENTITY_TYPE_load().
* Implements hook_ENTITY_TYPE_load() for 'static_cache_test_config_test'.
*/
function config_entity_static_cache_test_config_test_load($entities) {
static $random;
......
......@@ -29,7 +29,7 @@ function config_test_cache_flush() {
}
/**
* Implements hook_ENTITY_TYPE_create().
* Implements hook_ENTITY_TYPE_create() for 'config_test'.
*/
function config_test_config_test_create(ConfigTest $config_test) {
if (\Drupal::state()->get('config_test.prepopulate')) {
......
......@@ -324,7 +324,7 @@ function entity_test_mulrev_load($id, $reset = FALSE) {
}
/**
* Implements hook_ENTITY_TYPE_insert().
* Implements hook_ENTITY_TYPE_insert() for 'entity_test'.
*/
function entity_test_entity_test_insert($entity) {
if ($entity->name->value == 'fail_insert') {
......@@ -443,42 +443,42 @@ function entity_test_entity_translation_delete(EntityInterface $translation) {
}
/**
* Implements hook_ENTITY_TYPE_translation_insert().
* Implements hook_ENTITY_TYPE_translation_insert() for 'entity_test_mul'.
*/
function entity_test_entity_test_mul_translation_insert(EntityInterface $translation) {
_entity_test_record_hooks('entity_test_mul_translation_insert', $translation->language()->getId());
}
/**
* Implements hook_ENTITY_TYPE_translation_delete().
* Implements hook_ENTITY_TYPE_translation_delete() for 'entity_test_mul'.
*/
function entity_test_entity_test_mul_translation_delete(EntityInterface $translation) {
_entity_test_record_hooks('entity_test_mul_translation_delete', $translation->language()->getId());
}
/**
* Implements hook_ENTITY_TYPE_translation_insert().
* Implements hook_ENTITY_TYPE_translation_insert() for 'entity_test_mulrev'.
*/
function entity_test_entity_test_mulrev_translation_insert(EntityInterface $translation) {
_entity_test_record_hooks('entity_test_mulrev_translation_insert', $translation->language()->getId());
}
/**
* Implements hook_ENTITY_TYPE_translation_delete().
* Implements hook_ENTITY_TYPE_translation_delete() for 'entity_test_mulrev'.
*/
function entity_test_entity_test_mulrev_translation_delete(EntityInterface $translation) {
_entity_test_record_hooks('entity_test_mulrev_translation_delete', $translation->language()->getId());
}
/**
* Implements hook_ENTITY_TYPE_translation_insert().
* Implements hook_ENTITY_TYPE_translation_insert() for 'entity_test_mul_langcode_key'.
*/
function entity_test_entity_test_mul_langcode_key_translation_insert(EntityInterface $translation) {
_entity_test_record_hooks('entity_test_mul_langcode_key_translation_insert', $translation->language()->getId());
}
/**
* Implements hook_ENTITY_TYPE_translation_delete().
* Implements hook_ENTITY_TYPE_translation_delete() for 'entity_test_mul_langcode_key'.
*/
function entity_test_entity_test_mul_langcode_key_translation_delete(EntityInterface $translation) {
_entity_test_record_hooks('entity_test_mul_langcode_key_translation_delete', $translation->language()->getId());
......@@ -567,7 +567,7 @@ function entity_test_entity_access(EntityInterface $entity, $operation, AccountI
}
/**
* Implements hook_ENTITY_TYPE_access().
* Implements hook_ENTITY_TYPE_access() for 'entity_test'.
*/
function entity_test_entity_test_access(EntityInterface $entity, $operation, AccountInterface $account, $langcode) {
\Drupal::state()->set('entity_test_entity_test_access', TRUE);
......@@ -587,7 +587,7 @@ function entity_test_entity_create_access(AccountInterface $account, $context, $
}
/**
* Implements hook_ENTITY_TYPE_create_access().
* Implements hook_ENTITY_TYPE_create_access() for 'entity_test'.
*/
function entity_test_entity_test_create_access(AccountInterface $account, $context, $entity_bundle) {
\Drupal::state()->set('entity_test_entity_test_create_access', TRUE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment