EntityDisplayModeFormBase::create

public static EntityDisplayModeFormBase::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: Th

ConfigTranslationEntityListBuilder::buildRow

public ConfigTranslationEntityListBuilder::buildRow(EntityInterface $entity) Builds a row for an entity in the entity listing. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list. Return value array A render array structure of fields for this entity. Overrides EntityListBuilder::buildRow See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/config_translation/src/Controller/ConfigTranslationEntityListBuilder.php, line 65 Class

error_displayable

error_displayable($error = NULL) Determines whether an error should be displayed. When in maintenance mode or when error_level is ERROR_REPORTING_DISPLAY_ALL, all errors should be displayed. For ERROR_REPORTING_DISPLAY_SOME, $error will be examined to determine if it should be displayed. Parameters $error: Optional error to examine for ERROR_REPORTING_DISPLAY_SOME. Return value TRUE if an error should be displayed. File core/includes/errors.inc, line 101 Functions for error handling. Code f

DatabaseLockBackend::__construct

public DatabaseLockBackend::__construct(Connection $database) Constructs a new DatabaseLockBackend. Parameters \Drupal\Core\Database\Connection $database: The database connection. File core/lib/Drupal/Core/Lock/DatabaseLockBackend.php, line 34 Class DatabaseLockBackend Defines the database lock backend. This is the default backend in Drupal. Namespace Drupal\Core\Lock Code public function __construct(Connection $database) { // __destruct() is causing problems with garbage collection

drupal_requirements_severity

drupal_requirements_severity(&$requirements) Extracts the highest severity from the requirements array. Parameters $requirements: An array of requirements, in the same format as is returned by hook_requirements(). Return value The highest severity in the array. File core/includes/install.inc, line 975 API functions for installing modules and themes. Code function drupal_requirements_severity(&$requirements) { $severity = REQUIREMENT_OK; foreach ($requirements as $requirement) {

shortcut_preprocess_page_title

shortcut_preprocess_page_title(&$variables) Implements hook_preprocess_HOOK() for page title templates. File core/modules/shortcut/shortcut.module, line 303 Allows users to manage customizable lists of shortcut links. Code function shortcut_preprocess_page_title(&$variables) { // Only display the shortcut link if the user has the ability to edit // shortcuts and if the page's actual content is being shown (for example, // we do not want to display it on "access denied" or "page

node_mass_update

node_mass_update(array $nodes, array $updates, $langcode = NULL, $load = FALSE, $revisions = FALSE) Updates all nodes in the passed-in array with the passed-in field values. IMPORTANT NOTE: This function is intended to work when called from a form submission handler. Calling it outside of the form submission process may not work correctly. Parameters array $nodes: Array of node nids or nodes to update. array $updates: Array of key/value pairs with node field names and the value to update that

CommentTypeDeleteForm

Provides a confirmation form for deleting a comment type entity. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\EntityConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\Core\Entity\EntityDeleteForm uses E

UpdateManagerInterface::getProjects

public UpdateManagerInterface::getProjects() Fetches an array of installed and enabled projects. This is only responsible for generating an array of projects (taking into account projects that include more than one module or theme). Other information like the specific version and install type (official release, dev snapshot, etc) is handled later in update_process_project_info() since that logic is only required when preparing the status report, not for fetching the available release data. This

EntityType::$render_cache

Indicates whether the rendered output of entities should be cached. Type: bool File core/lib/Drupal/Core/Entity/EntityType.php, line 31 Class EntityType Provides an implementation of an entity type and its metadata. Namespace Drupal\Core\Entity Code protected $render_cache = TRUE;