first commit

This commit is contained in:
2024-07-15 12:33:27 +02:00
commit ce50ae282b
22084 changed files with 2623791 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
name: 'Pathauto custom punctuation testing module'
type: module
description: 'Add some uncommon punctuation to the replacement list.'
package: Testing
# Information added by Drupal.org packaging script on 2024-05-18
version: '8.x-1.12+6-dev'
project: 'pathauto'
datestamp: 1716065615

View File

@@ -0,0 +1,8 @@
<?php
/**
* Implements hook_pathauto_punctuation_chars_alter().
*/
function pathauto_custom_punctuation_test_pathauto_punctuation_chars_alter(array &$punctuation) {
$punctuation['copyright'] = ['value' => '©', 'name' => t('Copyright symbol')];
}

View File

@@ -0,0 +1,11 @@
name: 'Pathauto testing module'
type: module
description: 'Pathauto for Entity with string ID.'
package: Testing
dependencies:
- token:token
# Information added by Drupal.org packaging script on 2024-05-18
version: '8.x-1.12+6-dev'
project: 'pathauto'
datestamp: 1716065615

View File

@@ -0,0 +1,50 @@
<?php
namespace Drupal\pathauto_string_id_test\Entity;
use Drupal\Core\Entity\ContentEntityBase;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Field\BaseFieldDefinition;
/**
* Defines a test entity with a string ID.
*
* @ContentEntityType(
* id = "pathauto_string_id_test",
* label = @Translation("Test entity with string ID"),
* handlers = {
* "route_provider" = {
* "html" = "Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider",
* },
* },
* base_table = "pathauto_string_id_test",
* entity_keys = {
* "id" = "id",
* "label" = "name",
* },
* links = {
* "canonical" = "/pathauto_string_id_test/{pathauto_string_id_test}",
* },
* )
*/
class PathautoStringIdTest extends ContentEntityBase {
/**
* {@inheritdoc}
*/
public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
$fields['id'] = BaseFieldDefinition::create('string')
->setLabel('ID')
->setReadOnly(TRUE)
// A bigger value will not be allowed to build the index.
->setSetting('max_length', 191);
$fields['name'] = BaseFieldDefinition::create('string')
->setLabel('Name');
$fields['path'] = BaseFieldDefinition::create('path')
->setLabel('Path')
->setComputed(TRUE);
return $fields;
}
}

View File

@@ -0,0 +1,11 @@
name: 'Views Test Config'
type: module
description: 'Provides default views for tests.'
package: Testing
dependencies:
- drupal:views
# Information added by Drupal.org packaging script on 2024-05-18
version: '8.x-1.12+6-dev'
project: 'pathauto'
datestamp: 1716065615