* Coder fix * Ignoring bad practices of inline_entity_form module
@ -51,7 +51,7 @@ function template_preprocess_fedora_resource(array &$variables) {
*
* @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();
$query = \Drupal::request()->query->all();
foreach ($variables['content'] as $type) {
@ -246,6 +246,7 @@ class FedoraResourceEntityInlineForm extends EntityInlineForm implements InlineF
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The form state of the parent form.
// @codingStandardsIgnoreLine
public static function submitCleanFormState(&$entity_form, FormStateInterface $form_state) {
$info = \Drupal::entityTypeManager()->getDefinition($entity_form['#entity_type']);
if (!$info->get('field_ui_base_route')) {
@ -719,7 +719,7 @@ class FedoraResourceSearch extends ConfigurableSearchPluginBase implements Acces
* Array of default form values for the advanced search form, including
* a modified 'keys' element for the bare search keywords.
protected function parseAdvancedDefaults($f, $keys) {
protected function parseAdvancedDefaults(array $f, $keys) {
$defaults = array();
// Split out the advanced search parameters.