Very basic way to add arity keys to ResourceObjectData result
      4 open threads
      
Closes #3275497
Merge request reports
Activity
- added 723 commits - 
a84ae5c1...70cfbbe0 - 721 commits from branch project:11.x
- 97f0f7c5 - Very basic way to add arity keys to ResourceObjectData result
- fe855f13 - Fix code style
 
- 
a84ae5c1...70cfbbe0 - 721 commits from branch 
- added 2 commits 
- 69 - 69 - */ - 70 - 70 - protected $language; - 71 - 71 - 72 - /** - 73 - * The resource object's metadata. - 74 - * - 75 - * @var array - 76 - */ - 77 - protected $meta; - changed this line in version 10 of the diff 
 
- 101 - 110 - // entity system - 102 - 111 - // @see \Drupal\Core\Entity\EntityBase::language() - 103 - 112 - $this->language = $language ?: new Language(['id' => LanguageInterface::LANGCODE_NOT_SPECIFIED]); - 113 - $this->meta = $meta; - 114 - } - 115 - 116 - /** - 117 - * Returns a copy of the given ResourceObject with the given arity. - 118 - * - 119 - * @param int $arity - 120 - * The new arity; must be a non-negative integer. 
- 119 - * @param int $arity - 120 - * The new arity; must be a non-negative integer. - 121 - * - 122 - * @return static - 123 - * A newly created ResourceObject with the given arity, otherwise - 124 - * the same. - 125 - */ - 126 - public function withArity(int $arity): ResourceObject { - 127 - if ($this->resourceType->isVersionable()) { - 128 - $versionIdentifier = str_replace('id:', '', $this->getVersionIdentifier()); - 129 - } - 130 - else { - 131 - $versionIdentifier = NULL; - 132 - } - 133 - 134 - return new static( 
- added 599 commits - 
5bf9f42f...42209999 - 589 commits from branch project:11.x
- 463caa7d - Very basic way to add arity keys to ResourceObjectData result
- b1c46da4 - Fix code style
- 6cfe6dbe - Add initial meta from the resource object
- c4e829c8 - Add test
- 127ab2b9 - Fix related tests
- 89b5cf4a - Missing commas
- dcc7e55c - Fix more tests
- af366068 - Fix node tests
- cf0b4606 - Fix file upload tests
- 8afff38c - Apply 1 suggestion(s) to 1 file(s)
 Toggle commit list
- 
5bf9f42f...42209999 - 589 commits from branch 
- added 28 commits - 
8afff38c...f43bc9e5 - 18 commits from branch project:11.x
- a89477bf - Very basic way to add arity keys to ResourceObjectData result
- 1068e951 - Fix code style
- f32b1ddd - Add initial meta from the resource object
- 7eb0ae50 - Add test
- 3af412fa - Fix related tests
- 730ebafe - Missing commas
- bcdb7300 - Fix more tests
- 2cffe13f - Fix node tests
- 16e6a1ef - Fix file upload tests
- 70c8bec8 - Apply 1 suggestion(s) to 1 file(s)
 Toggle commit list
- 
8afff38c...f43bc9e5 - 18 commits from branch 
- added 269 commits - 
025b18fb...e2aea6e6 - 258 commits from branch project:11.x
- e5ae34f9 - 1 earlier commit
- 2b1da589 - Fix code style
- 2bb0dc37 - Add initial meta from the resource object
- cacc6aa2 - Add test
- 5349293f - Fix related tests
- fb6f65c5 - Missing commas
- 1c75246c - Fix more tests
- e07342db - Fix node tests
- 5a9802d9 - Fix file upload tests
- 370985f5 - Apply 1 suggestion(s) to 1 file(s)
- 3c2581d8 - Expand tests a bit
 Toggle commit list
- 
025b18fb...e2aea6e6 - 258 commits from branch 
Please register or sign in to reply

