* '#cache' => [
* 'keys' => ['entity_view', 'node', $node->id()],
* 'contexts' => ['languages'],
- * 'tags' => ['node:' . $node->id()],
+ * 'tags' => $node->getCacheTags(),
* 'max-age' => Cache::PERMANENT,
* ],
* @endcode
* hook called (in this case 'node__article') is available in
* $variables['theme_hook_original'].
*
+ * Implementations of this hook must be placed in *.module or *.theme files, or
+ * must otherwise make sure that the hook implementation is available at
+ * any given time.
+ *
* @todo Add @code sample.
*
* @param array $variables
* hook called (in this case 'node__article') is available in
* $variables['theme_hook_original'].
*
+ * Implementations of this hook must be placed in *.module or *.theme files, or
+ * must otherwise make sure that the hook implementation is available at
+ * any given time.
+ *
* @todo Add @code sample.
*
* @param array $suggestions
/**
* Respond to themes being uninstalled.
*
- * @param array $theme_list
+ * @param array $themes
* Array containing the names of the themes being uninstalled.
*
* @see \Drupal\Core\Extension\ThemeHandler::uninstall()