Browse Source

Coder fix (#25)

* Coder fix

* Ignoring bad practices of inline_entity_form module
pull/756/head
dannylamb 8 years ago committed by Nick Ruest
parent
commit
89da263c4b
  1. 2
      islandora/fedora_resource.page.inc
  2. 1
      islandora/src/Form/FedoraResourceEntityInlineForm.php
  3. 2
      islandora/src/Plugin/Search/FedoraEntitySearch.php

2
islandora/fedora_resource.page.inc

@ -51,7 +51,7 @@ function template_preprocess_fedora_resource(array &$variables) {
* *
* @see block_content_add_page() * @see block_content_add_page()
*/ */
function template_preprocess_fedora_resource_content_add_list(&$variables) { function template_preprocess_fedora_resource_content_add_list(array &$variables) {
$variables['types'] = array(); $variables['types'] = array();
$query = \Drupal::request()->query->all(); $query = \Drupal::request()->query->all();
foreach ($variables['content'] as $type) { foreach ($variables['content'] as $type) {

1
islandora/src/Form/FedoraResourceEntityInlineForm.php

@ -246,6 +246,7 @@ class FedoraResourceEntityInlineForm extends EntityInlineForm implements InlineF
* @param \Drupal\Core\Form\FormStateInterface $form_state * @param \Drupal\Core\Form\FormStateInterface $form_state
* The form state of the parent form. * The form state of the parent form.
*/ */
// @codingStandardsIgnoreLine
public static function submitCleanFormState(&$entity_form, FormStateInterface $form_state) { public static function submitCleanFormState(&$entity_form, FormStateInterface $form_state) {
$info = \Drupal::entityTypeManager()->getDefinition($entity_form['#entity_type']); $info = \Drupal::entityTypeManager()->getDefinition($entity_form['#entity_type']);
if (!$info->get('field_ui_base_route')) { if (!$info->get('field_ui_base_route')) {

2
islandora/src/Plugin/Search/FedoraEntitySearch.php

@ -719,7 +719,7 @@ class FedoraResourceSearch extends ConfigurableSearchPluginBase implements Acces
* Array of default form values for the advanced search form, including * Array of default form values for the advanced search form, including
* a modified 'keys' element for the bare search keywords. * a modified 'keys' element for the bare search keywords.
*/ */
protected function parseAdvancedDefaults($f, $keys) { protected function parseAdvancedDefaults(array $f, $keys) {
$defaults = array(); $defaults = array();
// Split out the advanced search parameters. // Split out the advanced search parameters.

Loading…
Cancel
Save