Commit c2153fee authored by git's avatar git Committed by guschilds

Issue #2604462 by mijost: PHP 7 compatibility

parent 45651b02
......@@ -7,7 +7,7 @@
use GuzzleHttp\Exception\RequestException;
use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\String;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\field\Entity\FieldConfig;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Url;
......@@ -427,7 +427,7 @@ function youtube_feeds_processor_targets_alter(&$targets, $entity_type, $bundle_
if ($field_info['type'] == 'youtube') {
$info = FieldConfig::loadByName($entity_type, $bundle_name, $field_name);
$targets[$field_name] = array(
'name' => String::checkPlain($info->getLabel()),
'name' => SafeMarkup::checkPlain($info->getLabel()),
'callback' => 'youtube_set_target',
'description' => t('The @label field of the node.', array('@label' => $info->getLabel())),
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment