Пример #1
0
 /**
  * Verify that search works with a numeric locale set.
  */
 public function testSearchWithNumericLocale()
 {
     // French decimal point is comma.
     setlocale(LC_NUMERIC, 'fr_FR');
     $this->nodeSearchPlugin->setSearch('tapir', array(), array());
     // The call to execute will throw an exception if a float in the wrong
     // format is passed in the query to the database, so an assertion is not
     // necessary here.
     $this->nodeSearchPlugin->execute();
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function submitForm(array &$form, FormStateInterface $form_state)
 {
     parent::submitForm($form, $form_state);
     if ($this->plugin instanceof PluginFormInterface) {
         $this->plugin->submitConfigurationForm($form, $form_state);
     }
     return $this->entity;
 }