Skip to content
Snippets Groups Projects
Commit 6843a71b authored by Sascha Grossenbacher's avatar Sascha Grossenbacher
Browse files

Issue #3483218 by berdir: Drupal 11 compatibility

parent f36b0805
No related branches found
No related tags found
1 merge request!4Resolve #3483218 "Drupal 11 compatibility"
Pipeline #322279 passed with warnings
......@@ -159,7 +159,7 @@ class ContentImportSelectForm extends FormBase {
'#ajax' => [
'callback' => '::getContentTable',
'wrapper' => 'edit-import',
'method' => 'replace',
'method' => 'replaceWith',
'effect' => 'fade',
],
'#default_value' => !empty($this->projectId) ? $this->projectId : 0,
......
......@@ -81,7 +81,7 @@ class MappingStepEdit extends MappingSteps {
'#ajax' => [
'callback' => '::getMappingTable',
'wrapper' => 'edit-mapping',
'method' => 'replace',
'method' => 'replaceWith',
'effect' => 'fade',
],
];
......
......@@ -42,7 +42,7 @@ class MappingStepNew extends MappingSteps {
'#ajax' => [
'callback' => '::getContentTypes',
'wrapper' => 'content-type-select',
'method' => 'replace',
'method' => 'replaceWith',
'effect' => 'fade',
],
'#default_value' => $formState->getValue('entity_type'),
......@@ -61,7 +61,7 @@ class MappingStepNew extends MappingSteps {
'#ajax' => [
'callback' => '::getMappingTable',
'wrapper' => 'edit-mapping',
'method' => 'replace',
'method' => 'replaceWith',
'effect' => 'fade',
],
'#prefix' => '<div id="content-type-select">',
......@@ -109,7 +109,7 @@ class MappingStepNew extends MappingSteps {
'#ajax' => [
'callback' => '::getMappingTable',
'wrapper' => 'edit-mapping',
'method' => 'replace',
'method' => 'replaceWith',
'effect' => 'fade',
],
];
......
......@@ -141,7 +141,7 @@ class ContentUploadSelectForm extends FormBase {
'#ajax' => [
'callback' => '::getContentTable',
'wrapper' => 'edit-upload',
'method' => 'replace',
'method' => 'replaceWith',
'effect' => 'fade',
],
'#default_value' => !empty($this->projectId) ? $this->projectId : 0,
......
......@@ -85,7 +85,7 @@ class CreateTemplateForm extends FormBase {
'#ajax' => [
'callback' => '::getContentTypes',
'wrapper' => 'content-type-select',
'method' => 'replace',
'method' => 'replaceWith',
'effect' => 'fade',
],
'#default_value' => $form_state->getValue('entity_type'),
......
......@@ -115,6 +115,13 @@ class Mapping extends ConfigEntityBase implements MappingInterface {
*/
protected $template;
/**
* {@inheritdoc}
*/
public function label() {
return $this->t('%project: %template', ['%project' => $this->project, '%template' => $this->template_name]);
}
/**
* {@inheritdoc}
*/
......
......@@ -2,6 +2,7 @@
namespace Drupal\content_workflow_bynder\Form;
use Drupal\Core\Config\TypedConfigManagerInterface;
use GatherContent\GatherContentClientInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Form\ConfigFormBase;
......@@ -30,8 +31,8 @@ class ConfigForm extends ConfigFormBase {
/**
* {@inheritdoc}
*/
public function __construct(ConfigFactoryInterface $config_factory, GatherContentClientInterface $client) {
parent::__construct($config_factory);
public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typed_config_manager, GatherContentClientInterface $client) {
parent::__construct($config_factory, $typed_config_manager);
$this->client = $client;
}
......@@ -41,6 +42,7 @@ class ConfigForm extends ConfigFormBase {
public static function create(ContainerInterface $container) {
return new static(
$container->get('config.factory'),
$container->get('config.typed'),
$container->get('content_workflow_bynder.client')
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment