BookManagerInterface::loadBookLink

public BookManagerInterface::loadBookLink($nid, $translate = TRUE) Loads a single book entry. The entries of a book entry is documented in \Drupal\book\BookOutlineStorageInterface::loadMultiple. If $translate is TRUE, it also checks access ('access' key) and loads the title from the node itself. Parameters int $nid: The node ID of the book. bool $translate: If TRUE, set access, title, and other elements. Return value array The book data of that node. See also \Drupal\book\BookOutlineStorageI

ConditionInterface::setExecutableManager

public ConditionInterface::setExecutableManager(ExecutableManagerInterface $executableManager) Sets the executable manager class. Parameters \Drupal\Core\Executable\ExecutableManagerInterface $executableManager: The executable manager. File core/lib/Drupal/Core/Condition/ConditionInterface.php, line 74 Class ConditionInterface An interface for condition plugins. Namespace Drupal\Core\Condition Code public function setExecutableManager(ExecutableManagerInterface $executableManager);

Unicode::caseFlip

public static Unicode::caseFlip($matches) Flip U+C0-U+DE to U+E0-U+FD and back. Can be used as preg_replace callback. Parameters array $matches: An array of matches by preg_replace_callback(). Return value string The flipped text. File core/lib/Drupal/Component/Utility/Unicode.php, line 657 Class Unicode Provides Unicode-related conversions and operations. Namespace Drupal\Component\Utility Code public static function caseFlip($matches) { return $matches[0][0] . chr(ord($matches[0]

Crypt::randomBytesBase64

public static Crypt::randomBytesBase64($count = 32) Returns a URL-safe, base64 encoded string of highly randomized bytes. Parameters $count: The number of random bytes to fetch and base64 encode. Return value string The base64 encoded result will have a length of up to 4 * $count. See also \Drupal\Component\Utility\Crypt::randomBytes() File core/lib/Drupal/Component/Utility/Crypt.php, line 130 Class Crypt Utility class for cryptographically-secure string handling routines. Namespace

HtmlTag::getInfo

public HtmlTag::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/lib/Drupal/Core/Render/Element/HtmlTag.php, line 49 Class HtmlTag Provides a render element for any HTML tag, with properties and value. Namespace Drupal\Core\Rende

Com

Generates a UUID using the Windows internal GUID extension. Hierarchy class \Drupal\Component\Uuid\Com implements UuidInterface See also http://php.net/com_create_guid File core/lib/Drupal/Component/Uuid/Com.php, line 10 Namespace Drupal\Component\Uuid Members Name Modifiers Type Description Com::generate public function Generates a Universally Unique IDentifier (UUID). Overrides UuidInterface::generate

Schema::renameTable

public Schema::renameTable($table, $new_name) Rename a table. Parameters $table: The table to be renamed. $new_name: The new name for the table. Throws \Drupal\Core\Database\SchemaObjectDoesNotExistException If the specified table doesn't exist. \Drupal\Core\Database\SchemaObjectExistsException If a table with the specified new name already exists. Overrides Schema::renameTable File core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 369 Class Schema MySQL implementation of \Drup

FieldConfigBase::__sleep

public FieldConfigBase::__sleep() Implements the magic __sleep() method. Using the Serialize interface and serialize() / unserialize() methods breaks entity forms in PHP 5.4. @todo Investigate in https://www.drupal.org/node/2074253. Overrides ConfigEntityBase::__sleep File core/lib/Drupal/Core/Field/FieldConfigBase.php, line 446 Class FieldConfigBase Base class for configurable field definitions. Namespace Drupal\Core\Field Code public function __sleep() { // Only serialize necessary

FormStateDecoratorBase::setGroups

public FormStateDecoratorBase::setGroups(array $groups) Sets references to details elements to render them within vertical tabs. Parameters array $groups: References to details elements to render them within vertical tabs. Return value $this Overrides FormStateInterface::setGroups File core/lib/Drupal/Core/Form/FormStateDecoratorBase.php, line 105 Class FormStateDecoratorBase Decorates another form state. Namespace Drupal\Core\Form Code public function setGroups(array $groups) { $t

menu_link_content_menu_delete

menu_link_content_menu_delete(MenuInterface $menu) Implements hook_menu_delete(). File core/modules/menu_link_content/menu_link_content.module, line 34 Allows administrators to create custom menu links. Code function menu_link_content_menu_delete(MenuInterface $menu) { $storage = \Drupal::entityManager()->getStorage('menu_link_content'); $menu_links = $storage->loadByProperties(array('menu_name' => $menu->id())); $storage->delete($menu_links); }