MenuLinkResetForm::buildForm

public MenuLinkResetForm::buildForm(array $form, FormStateInterface $form_state, MenuLinkInterface $menu_link_plugin = NULL) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides ConfirmFormBase::buildForm File core/modules/menu_ui/src/Form/MenuLinkResetForm.php, line 91 Class MenuLinkResetForm Defines a confirmat

Schema::addIndex

abstract public Schema::addIndex($table, $name, $fields, array $spec) Add an index. @todo remove the $spec argument whenever schema introspection is added. Parameters $table: The table to be altered. $name: The name of the index. $fields: An array of field names or field information; if field information is passed, it's an array whose first element is the field name and whose second is the maximum length in the index. For example, the following will use the full length of the `foo` field, but

Image::chmod

protected Image::chmod($uri, $mode = NULL) Provides a wrapper for drupal_chmod() to allow unit testing. @todo Remove when https://www.drupal.org/node/2050759 is in. Parameters string $uri: A string containing a URI file, or directory path. int $mode: Integer value for the permissions. Consult PHP chmod() documentation for more information. Return value bool TRUE for success, FALSE in the event of an error. See also drupal_chmod() File core/lib/Drupal/Core/Image/Image.php, line 218 Class

Insert

PostgreSQL implementation of \Drupal\Core\Database\Query\Insert. Hierarchy class \Drupal\Core\Database\Query\Query implements PlaceholderInterfaceclass \Drupal\Core\Database\Query\Insert implements \Countable uses InsertTraitclass \Drupal\Core\Database\Driver\pgsql\Insert Related topics Database abstraction layer Allow the use of different database servers using the same code base. File core/lib/Drupal/Core/Database/Driver/pgsql/Insert.php, line 16 Namespace Drupal\Core\Database\Driv

LibraryDiscoveryCollector

A CacheCollector implementation for building library extension info. Hierarchy class \Drupal\Core\Cache\CacheCollector implements CacheCollectorInterface, DestructableInterfaceclass \Drupal\Core\Asset\LibraryDiscoveryCollector File core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php, line 16 Namespace Drupal\Core\Asset Members Name Modifiers Type Description CacheCollector::$cache protected property The cache backend that should be used. CacheCollector::$cacheCre

ConfigNamesMapper

Configuration mapper base implementation. Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\config_translation\ConfigNamesMapper implements ConfigMapperInterface, ContainerFactoryPluginInterface File core/modules/config_translation/src/ConfigNamesMapper.php, line 24 Namespace Drupal\config_translation Members

TextFormat

Provides a text format render element. Properties: #base_type: The form element #type to use for the 'value' element. 'textarea' by default. #format: (optional) The text format ID to preselect. If omitted, the default format for the current user will be used. #allowed_formats: (optional) An array of text format IDs that are available for this element. If omitted, all text formats that the current user has access to will be allowed. Usage Example: $form['body'] = array( '#type' => 'tex

BookRemoveForm

Remove form for book module. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Form\ConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\book\Form\BookRemoveForm File core/modules/book/src/Form/BookRemoveForm.php, line 14 Namespace Drupal\book\Form Members Name Modifie

PluralTranslatableMarkup

A class to hold plural translatable markup. Hierarchy class \Drupal\Component\Render\FormattableMarkup implements \Countable, MarkupInterfaceclass \Drupal\Core\StringTranslation\TranslatableMarkup uses ToStringTraitclass \Drupal\Core\StringTranslation\PluralTranslatableMarkup File core/lib/Drupal/Core/StringTranslation/PluralTranslatableMarkup.php, line 8 Namespace Drupal\Core\StringTranslation Members Name Modifiers Type Description FormattableMarkup::$arguments protected

SqlContentEntityStorageSchema::initializeDataTable

protected SqlContentEntityStorageSchema::initializeDataTable(ContentEntityTypeInterface $entity_type) Initializes common information for a data table. Parameters \Drupal\Core\Entity\ContentEntityTypeInterface $entity_type: The entity type. Return value array A partial schema array for the data table. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 911 Class SqlContentEntityStorageSchema Defines a schema handler that supports revisionable, translatable entitie