You are here

public function CustomTag::defineOptions in Views Custom Cache Tags 8

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides PluginBase::defineOptions

File

src/Plugin/views/cache/CustomTag.php, line 45
Contains \Drupal\views_custom_cache_tag\Plugin\views\cache\CustomTag.

Class

CustomTag
Simple caching of query results for Views displays.

Namespace

Drupal\views_custom_cache_tag\Plugin\views\cache

Code

public function defineOptions() {
  $options = parent::defineOptions();
  $options['custom_tag'] = array(
    'default' => '',
  );
  return $options;
}