file_unmanaged_move

file_unmanaged_move($source, $destination = NULL, $replace = FILE_EXISTS_RENAME) Moves a file to a new location without database changes or hook invocation. This is a powerful function that in many ways performs like an advanced version of rename(). Checks if $source and $destination are valid and readable/writable. Checks that $source is not equal to $destination; if they are an error is reported. If file already exists in $destination either the call will error out, replace the file or rename

OutboundPathProcessorInterface::processOutbound

public OutboundPathProcessorInterface::processOutbound($path, &$options = array(), Request $request = NULL, BubbleableMetadata $bubbleable_metadata = NULL) Processes the outbound path. Parameters string $path: The path to process, with a leading slash. array $options: (optional) An associative array of additional options, with the following elements: 'query': An array of query key/value-pairs (without any URL-encoding) to append to the URL. 'fragment': A fragment identifier (named anchor

PreExistingConfigException::$extension

The name of the module that is being installed. Type: string File core/lib/Drupal/Core/Config/PreExistingConfigException.php, line 24 Class PreExistingConfigException An exception thrown if configuration with the same name already exists. Namespace Drupal\Core\Config Code protected $extension;

ThemeManager::render

public ThemeManager::render($hook, array $variables) Generates themed output. See the Default theme implementations topic for details. Parameters string $hook: The name of the theme hook to call. array $variables: An associative array of theme variables. Return value string|\Drupal\Component\Render\MarkupInterface The rendered output, or a Markup object. Overrides ThemeManagerInterface::render File core/lib/Drupal/Core/Theme/ThemeManager.php, line 130 Class ThemeManager Provides the defa

MenuLinkManager::resetLink

public MenuLinkManager::resetLink($id) Resets the values for a menu link based on the values found by discovery. Parameters string $id: The menu link plugin ID. Return value \Drupal\Core\Menu\MenuLinkInterface The menu link instance after being reset. Throws \Drupal\Component\Plugin\Exception\PluginException Thrown if the $id is not a valid, existing, plugin ID or if the link cannot be reset. Overrides MenuLinkManagerInterface::resetLink File core/lib/Drupal/Core/Menu/MenuLinkManager.php, li

BigPipe::sendPlaceholders

protected BigPipe::sendPlaceholders(array $placeholders, array $placeholder_order, AttachedAssetsInterface $cumulative_assets) Sends BigPipe placeholders' replacements as embedded AJAX responses. Parameters array $placeholders: Associative array; the BigPipe placeholders. Keys are the BigPipe placeholder IDs. array $placeholder_order: Indexed array; the order in which the BigPipe placeholders must be sent. Values are the BigPipe placeholder IDs. (These values correspond to keys in $placeholder

hook_form_alter

hook_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) Perform alterations before a form is rendered. One popular use of this hook is to add form elements to the node form. When altering a node form, the node entity can be retrieved by invoking $form_state->getFormObject()->getEntity(). Implementations are responsible for adding cache contexts/tags/max-age as needed. See https://www.drupal.org/developing/api/8/cache. In addition to hook_form_alter(), which

MenuLinkResetForm::linkIsResettable

public MenuLinkResetForm::linkIsResettable(MenuLinkInterface $menu_link_plugin) Checks access based on whether the link can be reset. Parameters \Drupal\Core\Menu\MenuLinkInterface $menu_link_plugin: The menu link plugin being checked. Return value \Drupal\Core\Access\AccessResultInterface The access result. File core/modules/menu_ui/src/Form/MenuLinkResetForm.php, line 116 Class MenuLinkResetForm Defines a confirmation form for resetting a single modified menu link. Namespace Drupal\

LoggerChannel::$requestStack

The request stack object. Type: \Symfony\Component\HttpFoundation\RequestStack File core/lib/Drupal/Core/Logger/LoggerChannel.php, line 72 Class LoggerChannel Defines a logger channel that most implementations will use. Namespace Drupal\Core\Logger Code protected $requestStack;

ClassResolverInterface::getInstanceFromDefinition

public ClassResolverInterface::getInstanceFromDefinition($definition) Returns a class instance with a given class definition. In contrast to controllers you don't specify a method. Parameters string $definition: A class name or service name. Return value object The instance of the class. Throws \InvalidArgumentException If $class is not a valid service identifier and the class does not exist. File core/lib/Drupal/Core/DependencyInjection/ClassResolverInterface.php, line 24 Class ClassRes