https://github.com/boristim/approval_codes
interview for Drupal 8
https://github.com/boristim/approval_codes
drupal drupal8 drupal8-module interview-test php7
Last synced: about 2 months ago
JSON representation
interview for Drupal 8
- Host: GitHub
- URL: https://github.com/boristim/approval_codes
- Owner: boristim
- License: gpl-2.0
- Created: 2019-10-12T09:43:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-03T11:20:27.000Z (over 6 years ago)
- Last Synced: 2025-05-22T06:45:41.798Z (10 months ago)
- Topics: drupal, drupal8, drupal8-module, interview-test, php7
- Language: PHP
- Homepage:
- Size: 256 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Task conditions see in Approval codes.pdf
Full informaition see here
https://docs.google.com/document/d/1YA-PBnmGSm2q3C6XsZxI2aWl0XosNX0YfL_seT2hDFU/edit?usp=sharing
Create the `approval_codes` module
Create an entity `approval_codes_entity` (`bundle_name`, `code`, `code_level`)
Сreate the module configuration form in three fields - a separator\delimiter, default site-level code, default contente-level code and CRUD to fill approval_codes_entity. All data is checked by regular expressions.
Create a custom service to get the code for the current page
Create a custom block where we use this service
Place via standart interface in any region block named _Approval codes_
Configure and edit codes via admin interface `/admin/config/system/approval-codes`
Almost all operations are performed using drush \ drupalconsole generators with little manual coding of logic.