Drupal 8  8.0.2
Time Class Reference
Inheritance diagram for Time:

Public Member Functions

 __construct (array $configuration, $plugin_id, $plugin_definition, DateFormatterInterface $date_formatter, Request $request)
 
 buildOptionsForm (&$form, FormStateInterface $form_state)
 
 validateOptionsForm (&$form, FormStateInterface $form_state)
 
 summaryTitle ()
 
- Public Member Functions inherited from CachePluginBase
 getResultsKey ()
 
 summaryTitle ()
 
 cacheSet ($type)
 
 cacheGet ($type)
 
 cacheFlush ()
 
 postRender (&$output)
 
 generateResultsKey ()
 
 getCacheTags ()
 
 getCacheMaxAge ()
 
 alterCacheMetadata (CacheableMetadata $cache_metadata)
 
 getRowCacheTags (ResultRow $row)
 
 getRowCacheKeys (ResultRow $row)
 
 getRowId (ResultRow $row)
 
- Public Member Functions inherited from PluginBase
 __construct (array $configuration, $plugin_id, $plugin_definition)
 
 init (ViewExecutable $view, DisplayPluginBase $display, array &$options=NULL)
 
 filterByDefinedOptions (array &$storage)
 
 unpackOptions (&$storage, $options, $definition=NULL, $all=TRUE, $check=TRUE)
 
 destroy ()
 
 buildOptionsForm (&$form, FormStateInterface $form_state)
 
 validateOptionsForm (&$form, FormStateInterface $form_state)
 
 submitOptionsForm (&$form, FormStateInterface $form_state)
 
 query ()
 
 themeFunctions ()
 
 validate ()
 
 summaryTitle ()
 
 pluginTitle ()
 
 usesOptions ()
 
 globalTokenReplace ($string= '', array $options=array())
 
 getAvailableGlobalTokens ($prepared=FALSE, array $types=array())
 
 globalTokenForm (&$form, FormStateInterface $form_state)
 
 calculateDependencies ()
 
 getProvider ()
 
- Public Member Functions inherited from PluginInspectionInterface
 getPluginId ()
 
 getPluginDefinition ()
 
- Public Member Functions inherited from DerivativeInspectionInterface
 getBaseId ()
 
 getDerivativeId ()
 

Static Public Member Functions

static create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
 
- Static Public Member Functions inherited from PluginBase
static create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
 
static preRenderAddFieldsetMarkup (array $form)
 
static preRenderFlattenData ($form)
 
static queryLanguageSubstitutions ()
 

Protected Member Functions

 defineOptions ()
 
 getLifespan ($type)
 
 cacheExpire ($type)
 
 cacheSetMaxAge ($type)
 
 getDefaultCacheMaxAge ()
 
- Protected Member Functions inherited from CachePluginBase
 cacheExpire ($type)
 
 cacheSetMaxAge ($type)
 
 getDefaultCacheMaxAge ()
 
 prepareViewResult (array $result)
 
- Protected Member Functions inherited from PluginBase
 defineOptions ()
 
 setOptionDefaults (array &$storage, array $options)
 
 doFilterByDefinedOptions (array &$storage, array $options)
 
 viewsTokenReplace ($text, $tokens)
 
 listLanguages ($flags=LanguageInterface::STATE_ALL, array $current_values=NULL)
 
 getRenderer ()
 

Protected Attributes

 $usesOptions = TRUE
 
 $dateFormatter
 
 $request
 
- Protected Attributes inherited from CachePluginBase
 $resultsBin = 'data'
 
 $resultsKey
 
- Protected Attributes inherited from PluginBase
 $usesOptions = FALSE
 
 $renderer
 

Additional Inherited Members

- Data Fields inherited from CachePluginBase
 $storage = array()
 
- Data Fields inherited from PluginBase
const INCLUDE_NEGOTIATED = 16
 
const INCLUDE_ENTITY = 32
 
const VIEWS_QUERY_LANGUAGE_SITE_DEFAULT = '***LANGUAGE_site_default***'
 
 $options = array()
 
 $view = NULL
 
 $displayHandler
 
 $definition
 

Detailed Description

Simple caching of query results for Views displays.

( id = "time", title = ("Time-based"), help = ("Simple time-based caching of data.") )

Constructor & Destructor Documentation

__construct ( array  $configuration,
  $plugin_id,
  $plugin_definition,
DateFormatterInterface  $date_formatter,
Request  $request 
)

Constructs a Time cache plugin object.

Parameters
array$configurationA configuration array containing information about the plugin instance.
string$plugin_idThe plugin_id for the plugin instance.
mixed$plugin_definitionThe plugin implementation definition.
\Drupal\Core\Datetime\DateFormatterInterface$date_formatterThe date formatter service.
\Symfony\Component\HttpFoundation\Request$requestThe current request.

References Drupal\request().

Here is the call graph for this function:

Member Function Documentation

buildOptionsForm ( $form,
FormStateInterface  $form_state 
)

Provide a form to edit options for this plugin.

Implements ViewsPluginInterface.

References t().

Here is the call graph for this function:

cacheSetMaxAge (   $type)
protected

{}

References Cache\PERMANENT.

Referenced by Time\getDefaultCacheMaxAge().

Here is the caller graph for this function:

static create ( ContainerInterface  $container,
array  $configuration,
  $plugin_id,
  $plugin_definition 
)
static

{Creates an instance of the plugin.

Parameters
\Symfony\Component\DependencyInjection\ContainerInterface$containerThe container to pull out services used in the plugin.
array$configurationA configuration array containing information about the plugin instance.
string$plugin_idThe plugin ID for the plugin instance.
mixed$plugin_definitionThe plugin implementation definition.
Returns
static Returns an instance of this plugin.
}

Implements ContainerFactoryPluginInterface.

getDefaultCacheMaxAge ( )
protected

{}

References Time\cacheSetMaxAge().

Here is the call graph for this function:

summaryTitle ( )

Returns the summary of the settings in the display.

Implements ViewsPluginInterface.

validateOptionsForm ( $form,
FormStateInterface  $form_state 
)

Validate the options form.

Implements ViewsPluginInterface.

References FormStateInterface\getValue(), FormStateInterface\setError(), and t().

Here is the call graph for this function:

Field Documentation

$usesOptions = TRUE
protected

{}


The documentation for this class was generated from the following file: