Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-forms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-forms
Merge requests
!28
release: 3.0.0
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
release: 3.0.0
devel
into
master
Overview
0
Commits
46
Pipelines
1
Changes
48
Merged
Krzysztof Dyszczyk
requested to merge
devel
into
master
2 years ago
Overview
0
Commits
46
Pipelines
1
Changes
48
0
0
Merge request reports
Viewing commit
dc8237b4
Prev
Next
Show latest version
48 files
+
120
−
84
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
48
dc8237b4
fix: devel merge, reformat
· dc8237b4
potreb
authored
3 years ago
src/Field/Traits/HtmlAttributes.php
+
5
−
2
View file @ dc8237b4
Edit in single-file editor
Open in Web IDE
Show full file
@@ -2,6 +2,9 @@
namespace
WPDesk\Forms\Field\Traits
;
use
WPDesk\Forms\Field
;
use
WPDesk\Forms\Form
;
/**
* Implementation of HTML attributes like id, name, action etc.
*
@@ -44,7 +47,7 @@ trait HtmlAttributes {
* @param string $name
* @param string[]|string|bool $value
*
* @return
\WPDesk\Forms\Field|\WPDesk\Forms\
Form
* @return
Field|
Form
*/
final
public
function
set_attribute
(
string
$name
,
$value
)
{
$this
->
attributes
[
$name
]
=
$value
;
@@ -53,7 +56,7 @@ trait HtmlAttributes {
}
/**
* @return
\WPDesk\Forms\Field|\WPDesk\Forms\Form
* @return
HtmlAttributes
*/
final
public
function
unset_attribute
(
string
$name
)
{
unset
(
$this
->
attributes
[
$name
]
);
Loading