@@ -42,10 +42,10 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | // Set a default description |
| 44 | 44 | $this->setDescription(_t( |
| 45 | - __CLASS__ . '.DESCRIPTION', |
|
| 45 | + __CLASS__.'.DESCRIPTION', |
|
| 46 | 46 | 'Connect to a data source from {site}. Once added and saved you can configure the appearance and add search' |
| 47 | 47 | . ' filters.', |
| 48 | - [ 'site' => $this->getSiteName() ] |
|
| 48 | + ['site' => $this->getSiteName()] |
|
| 49 | 49 | )); |
| 50 | 50 | |
| 51 | 51 | $this->addExtraClass('ckan-resource-locator__container'); |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | { |
| 92 | 92 | // Allow empty site names |
| 93 | 93 | if ($this->siteName === null) { |
| 94 | - return _t(__CLASS__ . '.GENERIC_SITE_NAME', 'a CKAN website'); |
|
| 94 | + return _t(__CLASS__.'.GENERIC_SITE_NAME', 'a CKAN website'); |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | return $this->siteName; |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | public function getCMSFields() |
| 31 | 31 | { |
| 32 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
| 32 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
| 33 | 33 | $fields->addFieldToTab('Root.Data', ResourceLocatorField::create('Thing')); |
| 34 | 34 | }); |
| 35 | 35 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | $fields = parent::getSettingsFields(); |
| 42 | 42 | |
| 43 | 43 | $fields->addFieldsToTab('Root.Settings', [ |
| 44 | - TextField::create('ItemsPerPage', _t(__CLASS__ . '.ItemsPerPage', 'Items per page')), |
|
| 44 | + TextField::create('ItemsPerPage', _t(__CLASS__.'.ItemsPerPage', 'Items per page')), |
|
| 45 | 45 | ]); |
| 46 | 46 | |
| 47 | 47 | return $fields; |