예제 #1
0
 /**
  * {@inheritdoc}
  */
 protected function pageDisplayOptions(array $form, FormStateInterface $form_state)
 {
     $display_options = parent::pageDisplayOptions($form, $form_state);
     $row_plugin = isset($form_state['values']['page']['style']['row_plugin']) ? $form_state['values']['page']['style']['row_plugin'] : NULL;
     $row_options = isset($form_state['values']['page']['style']['row_options']) ? $form_state['values']['page']['style']['row_options'] : array();
     $this->display_options_row($display_options, $row_plugin, $row_options);
     return $display_options;
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 protected function pageDisplayOptions(array $form, FormStateInterface $form_state)
 {
     $display_options = parent::pageDisplayOptions($form, $form_state);
     $row_plugin = $form_state->getValue(array('page', 'style', 'row_plugin'));
     $row_options = $form_state->getValue(array('page', 'style', 'row_options'), array());
     $this->display_options_row($display_options, $row_plugin, $row_options);
     return $display_options;
 }