Ajax::getInfo

public Ajax::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/Ajax.php, line 19 Class Ajax Provides a render element for adding Ajax to a render element. Namespace Drupal\Core\Render\Element Code p

Ajax API

Overview for Drupal's Ajax API. Overview of Ajax Ajax is the process of dynamically updating parts of a page's HTML based on data from the server. When a specified event takes place, a PHP callback is triggered, which performs server-side logic and may return updated markup or JavaScript commands to run. After the return, the browser runs the JavaScript or updates the markup on the fly, with no full page refresh necessary. Many different events can trigger Ajax responses, including: Clicking a

Ajax

Provides a render element for adding Ajax to a render element. Holds an array whose values control the Ajax behavior of the element. Plugin annotation @RenderElement("ajax") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Render\Element\RenderElement implements ElementInterfaceclass \Drupal\Core\Render\Element\Aj

aggregator_theme

aggregator_theme() Implements hook_theme(). File core/modules/aggregator/aggregator.module, line 67 Used to aggregate syndicated content (RSS, RDF, and Atom). Code function aggregator_theme() { return array( 'aggregator_feed' => array( 'render element' => 'elements', 'file' => 'aggregator.theme.inc', ), 'aggregator_item' => array( 'render element' => 'elements', 'file' => 'aggregator.theme.inc', ), ); }

aggregator_requirements

aggregator_requirements($phase) Implements hook_requirements(). File core/modules/aggregator/aggregator.install, line 11 Install, update and uninstall functions for the aggregator module. Code function aggregator_requirements($phase) { $has_curl = function_exists('curl_init'); $requirements = array(); $requirements['curl'] = array( 'title' => t('cURL'), 'value' => $has_curl ? t('Enabled') : t('Not found'), ); if (!$has_curl) { $requirements['curl']['severity'] = RE

aggregator_preprocess_block

aggregator_preprocess_block(&$variables) Implements hook_preprocess_HOOK() for block templates. File core/modules/aggregator/aggregator.module, line 178 Used to aggregate syndicated content (RSS, RDF, and Atom). Code function aggregator_preprocess_block(&$variables) { if ($variables['configuration']['provider'] == 'aggregator') { $variables['attributes']['role'] = 'complementary'; } }

aggregator_help

aggregator_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/aggregator/aggregator.module, line 19 Used to aggregate syndicated content (RSS, RDF, and Atom). Code function aggregator_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.aggregator': $path_validator = \Drupal::pathValidator(); $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>'

aggregator_entity_extra_field_info

aggregator_entity_extra_field_info() Implements hook_entity_extra_field_info(). File core/modules/aggregator/aggregator.module, line 83 Used to aggregate syndicated content (RSS, RDF, and Atom). Code function aggregator_entity_extra_field_info() { $extra = array(); $extra['aggregator_feed']['aggregator_feed'] = array( 'display' => array( 'items' => array( 'label' => t('Items'), 'description' => t('Items associated with this feed'), 'weight' =

aggregator_cron

aggregator_cron() Implements hook_cron(). Queues news feeds for updates once their refresh interval has elapsed. File core/modules/aggregator/aggregator.module, line 137 Used to aggregate syndicated content (RSS, RDF, and Atom). Code function aggregator_cron() { $queue = \Drupal::queue('aggregator_feeds'); $ids = \Drupal::entityManager()->getStorage('aggregator_feed')->getFeedIdsToRefresh(); foreach (Feed::loadMultiple($ids) as $feed) { if ($queue->createItem($feed)) {

AGGREGATOR_CLEAR_NEVER

Denotes that a feed's items should never expire. File core/modules/aggregator/aggregator.module, line 14 Used to aggregate syndicated content (RSS, RDF, and Atom). Code const AGGREGATOR_CLEAR_NEVER = 0;