You are here

embed.api.php in Embed 8

Hooks provided by the Embed module.

File

embed.api.php
View source
<?php

/**
 * @file
 * Hooks provided by the Embed module.
 */

/**
 * @addtogroup hooks
 * @{
 */

/**
 * Alter the embed type plugin definitions.
 *
 * @param array &$plugins
 *   An associative array containing the embed type plugin definitions keyed by
 *   plugin ID.
 *
 * @see \Drupal\embed\EmbedType\EmbedTypeManager
 */
function hook_embed_type_plugins_alter(array &$plugins) {
  if (isset($plugins['entity'])) {
    $plugins['entity']['label'] = 'A better label for embedded entities';
  }
}

/**
 * @} End of "addtogroup hooks".
 */

Functions

Namesort descending Description
hook_embed_type_plugins_alter Alter the embed type plugin definitions.