Drupal 8  8.0.2
Node Class Reference
Inheritance diagram for Node:

Public Member Functions

 getAvailableSorts ()
 
- Public Member Functions inherited from WizardPluginBase
 __construct (array $configuration, $plugin_id, $plugin_definition)
 
 getCreatedColumn ()
 
 getFilters ()
 
 getAvailableSorts ()
 
 getSorts ()
 
 buildForm (array $form, FormStateInterface $form_state)
 
 validateView (array $form, FormStateInterface $form_state)
 
 createView (array $form, FormStateInterface $form_state)
 
- 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 ()
 

Protected Member Functions

 rowStyleOptions ()
 
 defaultDisplayOptions ()
 
 defaultDisplayFiltersUser (array $form, FormStateInterface $form_state)
 
 pageDisplayOptions (array $form, FormStateInterface $form_state)
 
 blockDisplayOptions (array $form, FormStateInterface $form_state)
 
 display_options_row (&$display_options, $row_plugin, $row_options)
 
 buildFilters (&$form, FormStateInterface $form_state)
 
- Protected Member Functions inherited from WizardPluginBase
 buildFormStyle (array &$form, FormStateInterface $form_state, $type)
 
 rowStyleOptions ()
 
 buildFilters (&$form, FormStateInterface $form_state)
 
 buildSorts (&$form, FormStateInterface $form_state)
 
 instantiateView ($form, FormStateInterface $form_state)
 
 buildDisplayOptions ($form, FormStateInterface $form_state)
 
 alterDisplayOptions (&$display_options, $form, FormStateInterface $form_state)
 
 addDisplays (View $view, $display_options, $form, FormStateInterface $form_state)
 
 defaultDisplayOptions ()
 
 defaultDisplayFilters ($form, FormStateInterface $form_state)
 
 defaultDisplayFiltersUser (array $form, FormStateInterface $form_state)
 
 defaultDisplaySorts ($form, FormStateInterface $form_state)
 
 defaultDisplaySortsUser ($form, FormStateInterface $form_state)
 
 pageDisplayOptions (array $form, FormStateInterface $form_state)
 
 blockDisplayOptions (array $form, FormStateInterface $form_state)
 
 restExportDisplayOptions (array $form, FormStateInterface $form_state)
 
 pageFeedDisplayOptions ($form, FormStateInterface $form_state)
 
 setDefaultOptions ($options, DisplayPluginBase $display, DisplayPluginBase $default_display)
 
 setOverrideOptions (array $options, DisplayPluginBase $display, DisplayPluginBase $default_display)
 
 retrieveValidatedView (array $form, FormStateInterface $form_state, $unset=TRUE)
 
 setValidatedView (array $form, FormStateInterface $form_state, ViewUI $view)
 
- 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

 $createdColumn = 'node_field_data-created'
 
 $filters
 
- Protected Attributes inherited from WizardPluginBase
 $base_table
 
 $entityTypeId
 
 $entityType
 
 $validated_views = array()
 
 $createdColumn
 
 $filters = array()
 
 $sorts = array()
 
 $availableSorts = array()
 
 $filter_defaults
 
- Protected Attributes inherited from PluginBase
 $usesOptions = FALSE
 
 $renderer
 

Additional Inherited Members

- Static Public Member Functions inherited from WizardPluginBase
static getSelected (FormStateInterface $form_state, $parents, $default_value, $element)
 
- 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 ()
 
- 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

Todo:
: replace numbers with constants.

Tests creating node views with the wizard.

( id = "node", base_table = "node_field_data", title = ("Content") )

Member Function Documentation

blockDisplayOptions ( array  $form,
FormStateInterface  $form_state 
)
protected

{}

References Node\display_options_row().

Here is the call graph for this function:

buildFilters ( $form,
FormStateInterface  $form_state 
)
protected

Overrides Drupal::buildFilters().

Add some options for filter by taxonomy terms.

References Drupal\entityManager(), and t().

Here is the call graph for this function:

defaultDisplayFiltersUser ( array  $form,
FormStateInterface  $form_state 
)
protected

{}

References Node\$filters.

defaultDisplayOptions ( )
protected

{}

display_options_row ( $display_options,
  $row_plugin,
  $row_options 
)
protected

Set the row style and row style plugins to the display_options.

Referenced by Node\blockDisplayOptions(), and Node\pageDisplayOptions().

Here is the caller graph for this function:

getAvailableSorts ( )

Overrides Drupal::getAvailableSorts().

Returns
array An array whose keys are the available sort options and whose corresponding values are human readable labels.

References t().

Here is the call graph for this function:

pageDisplayOptions ( array  $form,
FormStateInterface  $form_state 
)
protected

{}

References Node\display_options_row().

Here is the call graph for this function:

rowStyleOptions ( )
protected

{}

References t().

Here is the call graph for this function:

Field Documentation

$createdColumn = 'node_field_data-created'
protected

Set the created column.

$filters
protected
Initial value:
= array(
'status' => array(
'value' => TRUE,
'table' => 'node_field_data',
'field' => 'status',
'plugin_id' => 'boolean',
'entity_type' => 'node',
'entity_field' => 'status',
)
)

Set default values for the filters.

Referenced by Node\defaultDisplayFiltersUser().


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