FieldConfigInterface::setLabel

public FieldConfigInterface::setLabel($label) Sets the field definition label. Parameters string $label: The label to set. Return value $this File core/lib/Drupal/Core/Field/FieldConfigInterface.php, line 27 Class FieldConfigInterface Defines an interface for configurable field definitions. Namespace Drupal\Core\Field Code public function setLabel($label);

StringInterface::getStorage

public StringInterface::getStorage() Gets the string storage. Return value \Drupal\locale\StringStorageInterface The storage used for this string. File core/modules/locale/src/StringInterface.php, line 90 Class StringInterface Defines the locale string interface. Namespace Drupal\locale Code public function getStorage();

Number::alphadecimalToInt

public static Number::alphadecimalToInt($string = '00') Decodes a sorting code back to an integer. Parameters string $string: The alpha decimal value to convert Return value int The integer value. See also \Drupal\Component\Utility\Number::intToAlphadecimal File core/lib/Drupal/Component/Utility/Number.php, line 97 Class Number Provides helper methods for manipulating numbers. Namespace Drupal\Component\Utility Code public static function alphadecimalToInt($string = '00') { return

hook_updater_info

hook_updater_info() Provide information on Updaters (classes that can update Drupal). Drupal\Core\Updater\Updater is a class that knows how to update various parts of the Drupal file system, for example to update modules that have newer releases, or to install a new theme. Return value An associative array of information about the updater(s) being provided. This array is keyed by a unique identifier for each updater, and the values are subarrays that can contain the following keys: class: The

ImageEffectInterface::applyEffect

public ImageEffectInterface::applyEffect(ImageInterface $image) Applies an image effect to the image object. Parameters \Drupal\Core\Image\ImageInterface $image: An image file object. Return value bool TRUE on success. FALSE if unable to perform the image effect on the image. File core/modules/image/src/ImageEffectInterface.php, line 30 Class ImageEffectInterface Defines the interface for image effects. Namespace Drupal\image Code public function applyEffect(ImageInterface $image);

search_expand_cjk

search_expand_cjk($matches) Splits CJK (Chinese, Japanese, Korean) text into tokens. The Search module matches exact words, where a word is defined to be a sequence of characters delimited by spaces or punctuation. CJK languages are written in long strings of characters, though, not split up into words. So in order to allow search matching, we split up CJK text into tokens consisting of consecutive, overlapping sequences of characters whose length is equal to the 'minimum_word_size' variable. T

BundleEntityFormBase::protectBundleIdElement

protected BundleEntityFormBase::protectBundleIdElement(array $form) Protects the bundle entity's ID property's form element against changes. This method is assumed to be called on a completely built entity form, including a form element for the bundle config entity's ID property. Parameters array $form: The completely built entity bundle form array. Return value array The updated entity bundle form array. File core/lib/Drupal/Core/Entity/BundleEntityFormBase.php, line 22 Class BundleEntit

Random::paragraphs

public Random::paragraphs($paragraph_count = 12) Generate paragraphs separated by double new line. Parameters int $paragraph_count: Return value string File core/lib/Drupal/Component/Utility/Random.php, line 251 Class Random Defines a utility class for creating random data. Namespace Drupal\Component\Utility Code public function paragraphs($paragraph_count = 12) { $output = ''; for ($i = 1; $i <= $paragraph_count; $i++) { $output .= $this->sentences(mt_rand(20, 60)) . "

FileSystem::tempnam

public FileSystem::tempnam($directory, $prefix) Creates a file with a unique filename in the specified directory. PHP's tempnam() does not return a URI like we want. This function will return a URI if given a URI, or it will return a filepath if given a filepath. Compatibility: normal paths and stream wrappers. Parameters string $directory: The directory where the temporary filename will be created. string $prefix: The prefix of the generated temporary filename. Note: Windows uses only the fir

FieldItemBase::preSave

public FieldItemBase::preSave() Defines custom presave behavior for field values. This method is called during the process of saving an entity, just before values are written into storage. When storing a new entity, its identifier will not be available yet. This should be used to massage item property values or perform any other operation that needs to happen before values are stored. For instance this is the proper phase to auto-create a new entity for an entity reference field item, because t